// 导入静态路由表
import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state: {
    menuList: [...constantRoutes] // 展开静态路由表, 赋给变量 menuList
  },
  mutations: {
    // 第二个形参接收的是 动态路由表 asyncRotes, 我们需要将静态路由表与动态路由表拼接起来
    setMenuList(state, filterRoutes) {
      state.menuList = [...constantRoutes, ...filterRoutes]
    }
  },
  actions: {

  }
}
